Adwaita: allow suggested and destructive action buttons in lists
authorJakub Steiner <jimmac@gmail.com>
Wed, 3 Feb 2021 22:13:24 +0000 (23:13 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 7 Feb 2021 16:43:18 +0000 (11:43 -0500)
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3643

gtk/theme/Adwaita/_common.scss

index b5094c68e61b63ffc13830dff9ca06ca0a8302a8..fe9db06ded512b6c3d8b88403bd6ffb3cb8bf94e 100644 (file)
@@ -932,6 +932,14 @@ list > row button.image-button:not(.flat) {
   &:hover { @include button(hover); }
   &:active,
   &:checked { @include button(active); }
+
+  @each $b_type, $b_color in (suggested-action, $selected_bg_color),
+                         (destructive-action, $destructive_color) {
+    &.#{$b_type} { // allow colored buttons in lists #3643
+      @include button(normal, $b_color, white);
+      @include focus-ring($fc: $alt_focus_border_color);
+    }
+  }
 }
 
 /*********